﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserControlDanhMucCon.ascx.cs" Inherits="TraCuuTinRaoVat.UserControlDanhMucCon" %>
<style type="text/css">
    .style1
    {
        width: 50%;
    }
    .style2
    {
        width: 126px;
    }
    .style3
    {
        width: 292px;
    }
</style>

<table >
    <tr>
        <td colspan="2" style="text-align: center">
        Thêm danh mục con :
        </td>
    </tr>
    <tr>
        <td class="style2">
        Mã&nbsp; danh mục chính:</td>
        <td class="style3">
        <asp:TextBox ID="txtMaDanhMucChinh" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="valiMaDMChinh" runat="server" 
            ControlToValidate="txtMaDanhMucChinh" ErrorMessage="*"></asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="txtMaDanhMucChinh" ErrorMessage="*" MaximumValue="100000" 
            MinimumValue="0" Type="Integer"></asp:RangeValidator>
        </td>
    </tr>
    <tr>
        <td class="style2">
        Tên danh mục con&nbsp; :</td>
        <td class="style3">
            <asp:TextBox ID="txtTenDanhMucCon" 
            runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="valiTenDMCon" runat="server" 
            ControlToValidate="txtTenDanhMucCon" ErrorMessage="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style2">
            Trạng thái:</td>
        <td class="style3">
            <asp:DropDownList ID="dropTrangThai2" runat="server">
            <asp:ListItem>0</asp:ListItem>
            <asp:ListItem>1</asp:ListItem>
        </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style2">
        <asp:Button ID="btnThemDanhMucCon" runat="server" onclick="Button2_Click" 
            Text="Thêm danh mục con" />
        </td>
        <td class="style3">
            <asp:Button ID="Button1" runat="server" Text="Hủy bỏ" onclick="Button1_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: center">
        <asp:Label ID="lblResultCon" runat="server" ForeColor="#FF5050"></asp:Label>
        </td>
    </tr>
</table>

